﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000BD RID: 189
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AreaDynamicInfo : IMessage<AreaDynamicInfo>, IMessage, IEquatable<AreaDynamicInfo>, IDeepCloneable<AreaDynamicInfo>, IBufferMessage
	{
		// Token: 0x17000266 RID: 614
		// (get) Token: 0x06000878 RID: 2168 RVA: 0x00018588 File Offset: 0x00016788
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AreaDynamicInfo> Parser
		{
			get
			{
				return AreaDynamicInfo._parser;
			}
		}

		// Token: 0x17000267 RID: 615
		// (get) Token: 0x06000879 RID: 2169 RVA: 0x0001858F File Offset: 0x0001678F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AreaDynamicInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000268 RID: 616
		// (get) Token: 0x0600087A RID: 2170 RVA: 0x000185A1 File Offset: 0x000167A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AreaDynamicInfo.Descriptor;
			}
		}

		// Token: 0x0600087B RID: 2171 RVA: 0x000185A8 File Offset: 0x000167A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AreaDynamicInfo()
		{
		}

		// Token: 0x0600087C RID: 2172 RVA: 0x000185B0 File Offset: 0x000167B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AreaDynamicInfo(AreaDynamicInfo other) : this()
		{
			this.diceSlotId_ = other.diceSlotId_;
			this.diyDynamicId_ = other.diyDynamicId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600087D RID: 2173 RVA: 0x000185E1 File Offset: 0x000167E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AreaDynamicInfo Clone()
		{
			return new AreaDynamicInfo(this);
		}

		// Token: 0x17000269 RID: 617
		// (get) Token: 0x0600087E RID: 2174 RVA: 0x000185E9 File Offset: 0x000167E9
		// (set) Token: 0x0600087F RID: 2175 RVA: 0x000185F1 File Offset: 0x000167F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DiceSlotId
		{
			get
			{
				return this.diceSlotId_;
			}
			set
			{
				this.diceSlotId_ = value;
			}
		}

		// Token: 0x1700026A RID: 618
		// (get) Token: 0x06000880 RID: 2176 RVA: 0x000185FA File Offset: 0x000167FA
		// (set) Token: 0x06000881 RID: 2177 RVA: 0x00018602 File Offset: 0x00016802
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DiyDynamicId
		{
			get
			{
				return this.diyDynamicId_;
			}
			set
			{
				this.diyDynamicId_ = value;
			}
		}

		// Token: 0x06000882 RID: 2178 RVA: 0x0001860B File Offset: 0x0001680B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AreaDynamicInfo);
		}

		// Token: 0x06000883 RID: 2179 RVA: 0x00018619 File Offset: 0x00016819
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AreaDynamicInfo other)
		{
			return other != null && (other == this || (this.DiceSlotId == other.DiceSlotId && this.DiyDynamicId == other.DiyDynamicId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000884 RID: 2180 RVA: 0x00018658 File Offset: 0x00016858
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.DiceSlotId != 0U)
			{
				num ^= this.DiceSlotId.GetHashCode();
			}
			if (this.DiyDynamicId != 0U)
			{
				num ^= this.DiyDynamicId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000885 RID: 2181 RVA: 0x000186B0 File Offset: 0x000168B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000886 RID: 2182 RVA: 0x000186B8 File Offset: 0x000168B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000887 RID: 2183 RVA: 0x000186C4 File Offset: 0x000168C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DiceSlotId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.DiceSlotId);
			}
			if (this.DiyDynamicId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.DiyDynamicId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000888 RID: 2184 RVA: 0x00018720 File Offset: 0x00016920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.DiceSlotId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DiceSlotId);
			}
			if (this.DiyDynamicId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DiyDynamicId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000889 RID: 2185 RVA: 0x00018778 File Offset: 0x00016978
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AreaDynamicInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.DiceSlotId != 0U)
			{
				this.DiceSlotId = other.DiceSlotId;
			}
			if (other.DiyDynamicId != 0U)
			{
				this.DiyDynamicId = other.DiyDynamicId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600088A RID: 2186 RVA: 0x000187C8 File Offset: 0x000169C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600088B RID: 2187 RVA: 0x000187D4 File Offset: 0x000169D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.DiyDynamicId = input.ReadUInt32();
					}
				}
				else
				{
					this.DiceSlotId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000326 RID: 806
		private static readonly MessageParser<AreaDynamicInfo> _parser = new MessageParser<AreaDynamicInfo>(() => new AreaDynamicInfo());

		// Token: 0x04000327 RID: 807
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000328 RID: 808
		public const int DiceSlotIdFieldNumber = 6;

		// Token: 0x04000329 RID: 809
		private uint diceSlotId_;

		// Token: 0x0400032A RID: 810
		public const int DiyDynamicIdFieldNumber = 11;

		// Token: 0x0400032B RID: 811
		private uint diyDynamicId_;
	}
}
